import React from "react";
import {Router,Redirect, Route, Switch} from "react-router";
import Home from "./Home";
import User from "./User";
import Login from "./Login";
import NotFound from "../error/NotFound";
const test=()=>(
    <Router history={window.location.hash}>
        <Route exact path="/" render={()=><Redirect to="/home" />} />
        <Route path="/home" render={()=><Home />} />
        <Route path="/user" render={()=><User />} />
        <Route path="/login" render={()=><Login />} />
        <Route path="/notfound" render={()=><NotFound />} />
    </Router>);